#include <stdio.h>

int main()
{
    int m=0;
    int *p=&m;
    printf("m=%d\n",m);
    printf("*p=%d\n",*p);
    int c=1;
    p=&c;
    printf("c=%d\n",c);
    printf("*p=%d\n",*p);
    int d=2;
    *p=d;
    printf("d=%d\n",d);
    printf("*p=%d\n",*p);
    printf("&d=%d\n",&d);
    printf("*p=%d\n",*p);

    return 0;
}

/*
D:\CLionProjects\leetcode\wsf.exe
m=0
*p=0
c=1
*p=1
d=2
*p=2
&d=1128266988
*p=2
*/